package com.client.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.client.service.ClientService;

@Controller
public class ClientController {
	@Autowired
	private ClientService clientService;
	
	@RequestMapping(value="/getJdkUserInfo.do",method=RequestMethod.GET)
	@ResponseBody
	public String getJdkUserInfo() {
		return clientService.getJdkUserInfo("153000000000");
	}
	
	@RequestMapping(value="/getCglibUserInfo.do",method=RequestMethod.GET)
	@ResponseBody
	public String getCglibUserInfo() {
		return clientService.getCglibUserInfo("153000000000");
	}
	
	@RequestMapping(value="/addJdkUserInfo.do",method=RequestMethod.GET)
	@ResponseBody
	public String addJdkUserInfo() {
		return clientService.addJdkUserInfo("153000000000");
	}
	
	@RequestMapping(value="/addCglibUserInfo.do",method=RequestMethod.GET)
	@ResponseBody
	public String addCglibUserInfo() {
		return clientService.addCglibUserInfo("153000000000");
	}
}
